Ext.ns('${namespace}');

${namespace}.${gridName} = Ext.extend(Ext.ux.grid.CollectGrid, {
    url: '${url}',
    urlDeleteData: '${deleteUrl}',
    toolbarConfig: [{
	    iconCls: 'select',
	    text: '查询',
	    handler: function() {
	    	
	    }
	},{
	    text: '重置',
	    iconCls: 'refresh',
	    handler: function() {
	    
	  	}
    },'',{
		buttonType : 'delete'
	},'',{
		buttonType : 'update'
	},'',{
		buttonType : 'add'
	}],
    keepSelectedOnPaging: false,
    CM_JR_Record: [{
        dataIndex: 'id',
        gridShow: false
    }
    <#list dbFields as field>
	,{
        dataIndex : '${field.name}',
        header : '${field.name}'
    }
	</#list>
   ],
   /**
    * 新增按钮点击的处理逻辑
    */
   addData: function() {
   
   },
   /**
    * 修改按钮点击的处理逻辑
    */
   updateData: function() {
   
   }
});